<template>
  <el-card>
    <div class="box">
      <img :src="UserSrore.avatar" class="avatar" />
      <div>
        <h3 class="title">
          {{ getTime() }}
          <span>{{ UserSrore.userName }}</span>
        </h3>
        <p class="subtitle">运营平台</p>
      </div>
    </div>
  </el-card>
  <div class="bottom">
    <svg-icon name="welcome" width="600px" height="300px"></svg-icon>
  </div>
</template>

<script setup lang="ts">
import { onMounted } from 'vue'
import { getTime } from '@/utils/time'
import useUserSrore from '@/store/modules/user.ts'
let UserSrore = useUserSrore()

onMounted(() => {
  UserSrore.userInfo()
})
</script>

<style scoped lang="scss">
.box {
  display: flex;
  justify-content: flex-start;
  .avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin-right: 30px;
  }
  .title {
    margin-top: 20px;
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 40px;
  }
  .subtitle {
    font-style: italic;
    color: #999;
  }
}
.bottom {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}
</style>
